package signAction;

import signBean.AdminDbManager;
import signBean.AdminUser;

public class AdminModifyAction {
	private int id;
	private String name;
	private String gender;
	private String depatement;
	private String phone;
	private String uname;
	private String password;
	
	public String execute(){
		AdminUser au = new AdminUser();
		au.setDepatement(depatement);
		au.setGender(gender);
		au.setName(name);
		au.setPassword(password);
		au.setPhone(phone);
		au.setUname(uname);
		au.setId(id);
		AdminDbManager ad = new AdminDbManager();
		ad.modifyPerson(au);
		return "modify";
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getDepatement() {
		return depatement;
	}
	public void setDepatement(String depatement) {
		this.depatement = depatement;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
